wayland/surface: Clear has_uncommitted_ack_configure when hiding
authorJonas Ådahl <jadahl@gmail.com>
Thu, 15 Oct 2020 12:52:57 +0000 (14:52 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 15 Oct 2020 12:56:06 +0000 (14:56 +0200)
commit7dfb25f12459d85f0c1f83001bac4d1f92cd76de
tree80a86f83c3d1b34085d2c98b6d89f85b333fd6e7
parent57ebc351a9029e4a9007a0580cf10b686bd11364
wayland/surface: Clear has_uncommitted_ack_configure when hiding

The 'has_uncommitted_ack_configure' state was added to make sure we're
responding to 'xdg_surface.configure' events with
'xdg_surface.ack_configure' requests, as is necessary according to spec.
What we didn't do was to clear this state when hiding, meaning that if
we hid the surface after a configure event, but before the frame
finished and we processed the 'has_uncommitted_ack_configure', we'd try
to acknowledge the surface configuration after having destroyed the
surface.

Closes: #3262
gdk/wayland/gdksurface-wayland.c